package com.industrial.im.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import nonapi.io.github.classgraph.utils.LogNode;

import java.util.Date;

public class MessageHistory {

    /**
     * 主键
     */
    @ExcelIgnore
    private String baseId;

    /**
     * 发送用户 ID
     */
    @ExcelIgnore
    private String fromUserId;

    /**
     * 目标 ID
     */
    @ExcelIgnore
    private String toUserId;

    /**
     * 消息类型
     */
    @ExcelIgnore
    private String objectName;

    /**
     * 会话类型
     */
    @ExcelIgnore
    private String channelType;

    /**
     * 消息内容
     */
    @ExcelProperty(value = "消息内容", order = 2)
    private String content;

    /**
     * 消息时间
     */
    @ExcelIgnore
    private Long msgTimestamp;

    /**
     * 消息发送时间字符串格式
     */
    @ExcelProperty(value = "发送时间", order = 3)
    private String msgTimestampStr;

    /**
     * 创建时间
     */
    @ExcelIgnore
    private Date baseCreateTime;

    /**
     * 发送人昵称
     */
    @ExcelProperty(value = "发送人名称", order = 0)
    private String sendNickName;

    /**
     * 接收人昵称
     */
    @ExcelProperty(value = "接收人名称", order = 1)
    private String toNickName;

    public String getBaseId() {
        return baseId;
    }

    public void setBaseId(String baseId) {
        this.baseId = baseId;
    }

    public String getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(String fromUserId) {
        this.fromUserId = fromUserId;
    }

    public String getToUserId() {
        return toUserId;
    }

    public void setToUserId(String toUserId) {
        this.toUserId = toUserId;
    }

    public String getObjectName() {
        return objectName;
    }

    public void setObjectName(String objectName) {
        this.objectName = objectName;
    }

    public String getChannelType() {
        return channelType;
    }

    public void setChannelType(String channelType) {
        this.channelType = channelType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getMsgTimestamp() {
        return msgTimestamp;
    }

    public void setMsgTimestamp(Long msgTimestamp) {
        this.msgTimestamp = msgTimestamp;
    }

    public String getMsgTimestampStr() {
        return msgTimestampStr;
    }

    public void setMsgTimestampStr(String msgTimestampStr) {
        this.msgTimestampStr = msgTimestampStr;
    }

    public Date getBaseCreateTime() {
        return baseCreateTime;
    }

    public void setBaseCreateTime(Date baseCreateTime) {
        this.baseCreateTime = baseCreateTime;
    }

    public String getSendNickName() {
        return sendNickName;
    }

    public void setSendNickName(String sendNickName) {
        this.sendNickName = sendNickName;
    }

    public String getToNickName() {
        return toNickName;
    }

    public void setToNickName(String toNickName) {
        this.toNickName = toNickName;
    }
}
